<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<link rel="stylesheet" href="assets/mui/css/mui.min.css">
	<link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="css/base.css">
	<link rel="stylesheet" href="css/category.css">
	<script src="assets/mui/js/mui.min.js"></script>
	<script src="assets/zepto/zepto.min.js"></script>
	<script src="assets/artTemplate/template-native.js"></script>
	<script src="js/category.js"></script>
	<script src="js/common.js"></script>
</head>

<body>
	<header class="mui-bar mui-bar-nav my-header">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">分类页面</h1>
		<a class="mui-icon mui-icon-search mui-pull-right" href="search.html"></a>
	</header>
	<nav class="mui-bar mui-bar-tab footer my-footer">
		<a class="mui-tab-item" href="index.html">
			<span class="mui-icon mui-icon-home"></span>
			<span class="mui-tab-label">首页</span>
		</a>
		<a class="mui-tab-item mui-active" href="category.html">
			<span class="mui-icon mui-icon-bars"></span>
			<span class="mui-tab-label">分类</span>
		</a>
		<a class="mui-tab-item" href="cart.html">
			<span class="mui-icon fa fa-shopping-cart"></span>
			<span class="mui-tab-label">购物车</span>
		</a>
		<a class="mui-tab-item" href="user.html">
			<span class="mui-icon mui-icon-person"></span>
			<span class="mui-tab-label">会员中心</span>
		</a>
	</nav>
	<!-- mui-content这个类名设置的区域会被内容撑大，而现在我们分类页面的中间区域是固定高度的
	不希望被撑大，所以需要重新写一个类名 -->
	<div class="my-content">
		<div class="left mui-scroll-wrapper">
			<ul class="mui-clearfix mui-scroll">
				
			</ul>
		</div>
		<div class="right mui-scroll-wrapper">
			<ul class="brandList">
				
			</ul>
		</div>
	</div>
</body>
<script type="text/html" id="first">
	<% for(var i=0;i<rows.length;i++){ %>
		<li data-id="<%=rows[i].id%>" 
			class="<%= i==0?'active':'' %>" >
			<a href="javascript:;">
				<%=rows[i].categoryName%>
			</a>
		</li>
	<% } %>
</script>

<script type="text/html" id="second">
	<% if(total === 0){ %>
		<p style="color:red;font-size:20px;line-height:30px;height:30px;">当前场馆没有对应的品牌</p>
	<% } %>

	<% for(var i=0;i<rows.length;i++){ %>
		<li>
			<a>
				<img src="<%=rows[i].brandLogo%>" alt="">
				<p><%=rows[i].brandName%></p>
			</a>
		</li>
	<% } %>
</script>
</html>